package com.zy.studentSide.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zy.studentSide.dao.StudentCourseDao;
import com.zy.studentSide.entity.StudentCourse;
import com.zy.studentSide.service.IStudentCourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 29787
 */
@Service
public class IStudentCourseServiceImpl extends ServiceImpl<StudentCourseDao, StudentCourse> implements IStudentCourseService {

    @Autowired
    private StudentCourseDao studentCourseDao;

    @Override
    public List<StudentCourse> getAllStudentCourse(Integer studentId) {
        return studentCourseDao.getAllStudentCourse(studentId);
    }

    @Override
    public StudentCourse getStudentCourse(Integer studentId,Integer courseId,Integer teacherId, Integer classroomId) {
        return studentCourseDao.getStudentCourse(studentId,courseId,teacherId, classroomId);
    }

    @Override
    public List<StudentCourse> getStudentCourseByCourseIdAndTeacherIdAndClassroomId(Integer courseId, Integer teacherId, Integer classroomId) {
        return studentCourseDao.getStudentCourseByCourseIdAndTeacherIdAndClassroomId(courseId, teacherId, classroomId);
    }

}
